package com.tangbue.springcloud.service.impl;

import com.tangbue.springcloud.service.PaymentHsytrixService;
import org.springframework.stereotype.Component;

//此类实现了service接口，可以作为服务降级和feign整合，需要在配置文件配置
@Component
public class PaymentFallbackService implements PaymentHsytrixService {

    @Override
    public String paymentInfo_OK(Integer id) {
        return "--paymentInfo_OK,o(U_U)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "--paymentInfo_TimeOut,o(U_U)o";
    }
}
